package com.erci.utils;


import com.erci.entity.UserLocal;
import com.erci.entity.VO.UserUserVO;

public class UserHolder {
    private static final ThreadLocal<UserLocal> tl = new ThreadLocal<>();

    public static void saveUser(UserLocal user){
        tl.set(user);
    }

    public static UserLocal getUser(){
        return tl.get();
    }

    public static void removeUser(){
        tl.remove();
    }
}
